#include "boids.h"

void rotateCamWithMouse(ICameraSceneNode* cam, int mouseChangeX, int mouseChangeY, bool disableMouseMovement)
{

	//dbYRotateObject( 2,dbObjectAngleY(2) + dbMouseMoveX()/3.0f );
	//dbXRotateObject( 2,dbObjectAngleX(2) + dbMouseMoveY()/3.0f );

	vector3df rotVec = vector3df((float)mouseChangeY, (float)mouseChangeX, 0.0f);
	vector3df camRot = cam->getRotation();
	//cam->setRotation(cam->getRotation() + vector3df((float)mouseChangeY, (float)mouseChangeX, 0.0f));
	
	
	if ((camRot + rotVec/5).X > -90 && (camRot + rotVec/5).X < 90) cam->setRotation(camRot + rotVec/5);

}